package com.choosefine.it.company.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.choosefine.it.base.dto.PageDTO;
import com.choosefine.it.company.dao.CompanyProjectExperienceMapper;
import com.choosefine.it.company.model.CompanyProjectExperience;
import com.choosefine.it.company.model.vo.CompanyProjectExperienceVO;
import com.choosefine.it.company.service.CompanyProjectExperienceService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

/**
 * @author chenjian
 * @date 2016-12-7 上午10:10:34
 */
@Service("companyProjectExperienceService")
public class CompanyProjectExperienceServiceImpl implements CompanyProjectExperienceService {
	@Autowired
	private CompanyProjectExperienceMapper companyProjectExperienceMapper;
	@Override
	public Page<CompanyProjectExperienceVO> findeCompanyProjectExperienceList(String userCode,PageDTO pageDto) {
		PageHelper.startPage(pageDto.getPageNum(), pageDto.getPageSize());
		Page<CompanyProjectExperienceVO> page = companyProjectExperienceMapper.findeCompanyProjectExperienceList(userCode);
		return page;
	}
	@Override
	public int saveCompanyProjectExperience(
			CompanyProjectExperience companyProjectExperience) {
		return companyProjectExperienceMapper.saveCompanyProjectExperience(companyProjectExperience);
	}
	@Override
	public int findeProjectExperienceCount(String userCode) {
		return companyProjectExperienceMapper.findeProjectExperienceCount(userCode);
	}
	
}
